Convert Array [ ] To Object { } In Javascript Javascript Interview

Convert Array [ ] To Object { } In Javascript Javascript Interview